package com.jingyanzi.privilege.service;

import java.util.List;

import com.jingyanzi.privilege.domain.BtnDO;
import com.jingyanzi.privilege.domain.result.ResultDO;
import com.jingyanzi.privilege.query.BtnQueryDO;

/**
 * @author reagan
 * @Description:按钮接口对象
 */
public interface IBtnService {
	
	public ResultDO add(List<BtnDO> list);
	
	
	public ResultDO modifi(List<BtnDO> list);

	/**
	 * 添加按钮对象
	 * @param btnDO
	 * @return ResultDO
	 */
	public ResultDO add(BtnDO btnDO);
	
	/**
	 * 删除按钮
	 * 
	 * 
	 * @param id 按钮ID
	 * @return ResultDO
	 */
	public ResultDO remove(Integer id);
	
	/**
	 * 查询基于菜单的按钮
	 * @param query
	 * @return ResultDO
	 */
	public ResultDO removeForMenuId(BtnQueryDO query);
	
	/**
	 * 修改菜单对象
	 * @param btnDO
	 * @return ResultDO
	 */
	public ResultDO modifi(BtnDO btnDO);
	
	
	/**
	 * 修改菜单对象
	 * @param id 按钮ID
	 * @return ResultDO
	 */
	public ResultDO get(Integer id);
	
	/**
	 * 得到基于角色的按钮
	 * @param roleId 角色ID
	 * @return ResultDO
	 */
	public ResultDO queryForRoleId(Integer roleId);
	
	
	/**
	 * 查询按钮对象
	 * @param query 查询DO
	 * @return ResultDO
	 */
	public ResultDO query(BtnQueryDO query);
	
	public ResultDO getMenuBtn(Integer menuId);
	
	public ResultDO queryForUserId(BtnQueryDO queryDO);
	
	public ResultDO getRoleBtn(int userId);
	
}
